﻿using System;
using System.Web.Mvc;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ShortUrl.WebUI.Controllers;
using ShortUrl.WebUI.Models;

namespace ShortUrl.UnitTests
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            UrlController controller = new UrlController();
            var result = controller.Create("http://www.qiulianwang.com") as JsonResult;
            var link = result.Data as JsonResultContent;

            Assert.AreEqual(link.statusCode, 0);
        }
    }
}
